﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.Entity;
using NormReference.Models;
using System.Data.Entity.ModelConfiguration.Conventions;

namespace NormReference.DAL
{
    public class NormReferenceContext : DbContext
    {
        public DbSet<ComparisonGroup> groups { get; set; }
        public DbSet<Department> departments { get; set; }
        public DbSet<Division> divisions { get; set; }
        public DbSet<DivisionFilter> divisionFilters { get; set; }
        public DbSet<DepartmentFilter> departmentFilters { get; set; }
        public DbSet<CourseEvaluation> courseEvaluations { get; set; }
        public DbSet<ComparisonGroupQueue_Backup> comparisonGroupQueue_Backup { get; set; }
        public DbSet<NormReferenceResult> normReferenceResults { get; set; }
        public DbSet<Faculty> faculty { get; set; }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            modelBuilder.Conventions.Remove<PluralizingTableNameConvention>();
        }

        public DbSet<FacultyReport> FacultyReports { get; set; }
    }
}